package com.koron.order.linedefect.defectPending.mapper;

import com.koron.order.linedefect.defectPending.bean.po.DefectPendingPo;
import com.koron.order.linedefect.defectPending.bean.query.DefectPendingQuery;
import com.koron.order.linedefect.defectPending.bean.vo.DefectPendingVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 缺陷工单下缺陷待处理信息从表(DefectPending)表数据库访问层
 *
 * @author zhouj
 * @since 2022-02-09 10:36:18
 */
public interface DefectPendingMapper {

    int insertOrUpdate(DefectPendingPo defectPending);

    int insertOrUpdateBatch(@Param("list") List<DefectPendingPo> defectPendingList);

    int insert(DefectPendingPo defectPending);

    int insertBatch(@Param("list") List<DefectPendingPo> defectPendingList);

    int update(DefectPendingPo defectPending);

    int deleteById(String id);

    DefectPendingPo queryById(String id);

    List<DefectPendingPo> queryList(DefectPendingQuery defectPendingQuery);

    List<DefectPendingVo> queryVoPageList(DefectPendingQuery pendingQuery);
}